#include <stdio.h>
#include <string.h>
int main()
{
  FILE *fp = fopen("write.txt", "w");
  if(!fp)
  {
  printf("fopen error!\n");
  }
  const char *msg = "hello lxm!\n";
  int count = 5;
  while(count--)
  {
  fwrite(msg, strlen(msg), 1, fp);
  }
  fclose(fp);
  return 0;
} 
